package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
@Getter
@Setter
@ToString
public class Salary extends BaseDomain{

    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM")
    private Date month; //月份

    private String name;

    private BigDecimal baseSalary;  //基本工资

    private BigDecimal accumulationFund;    //公积金

    private BigDecimal socialInsurance; //五险

    private BigDecimal overtime;    //加班补贴

    private BigDecimal personalIncome;  //个人所得税

    private Integer workday;    //工作天数

    private String bankcardNumber;  //工资卡号

    private Integer lateday;    //迟到天数

    private BigDecimal realWages;   //实发工资

    private BigDecimal bonus;   //奖金

    private BigDecimal coefficient; //奖金系数

    private Staff staffjob;   //关联职工表,通过职工的工号查询姓名

    private Department dept;    //关联部门表,通过部门的id查询部门名称

}